package main

import (
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})
	r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
// export GOPROXY=https://goproxy.io
//export GO111MODULE=on
//export GOPROXY=https://mirrors.aliyun.com/goproxy/
//go env -w GO111MODULE=on
//go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
//$ export GO111MODULE=on
//$ export GOPROXY=https://goproxy.cn
//go get -u github.com/gin-gonic/gin